<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>eRPC Generator (erpcgen): Annotation.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">eRPC Generator (erpcgen)
   &#160;<span id="projectnumber">Rev. 1.7.4</span>
   </div>
   <div id="projectbrief">NXP Semiconductors</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_annotation_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Annotation.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2014, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright 2016 NXP</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef _EMBEDDED_RPC__ANNOTATION_H_</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define _EMBEDDED_RPC__ANNOTATION_H_</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;AstNode.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;Token.h&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;Value.h&quot;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// Classes</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceerpcgen.html">erpcgen</a> {</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_annotation.html">   27</a></span>&#160;<span class="keyword">class </span><a class="code" href="classerpcgen_1_1_annotation.html">Annotation</a></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;{</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">enum</span> program_lang_t</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    {</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        kAll,</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        kC,</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        kPython</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    };</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_annotation.html#a8e01ad3e229cbcd55877420a27a399b0">   46</a></span>&#160;    <a class="code" href="classerpcgen_1_1_annotation.html#a8e01ad3e229cbcd55877420a27a399b0">Annotation</a>(<span class="keyword">const</span> <a class="code" href="classerpcgen_1_1_token.html">Token</a> &amp;token, <a class="code" href="class_value.html">Value</a> *val, program_lang_t lang)</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    : m_name(token.getStringValue())</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    , m_value(val)</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    , m_location(token.<a class="code" href="classerpcgen_1_1_annotation.html#aef0bc8ff519273c631b0b79213650e0b">getLocation</a>())</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    , m_lang(lang)</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    }</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_annotation.html#aeaa03b81e72b64279bf91374761b7363">   61</a></span>&#160;    <a class="code" href="classerpcgen_1_1_annotation.html#aeaa03b81e72b64279bf91374761b7363">Annotation</a>(<span class="keyword">const</span> <a class="code" href="classerpcgen_1_1_token.html">Token</a> &amp;token)</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    : m_name(token.getStringValue())</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    , m_value(nullptr)</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    , m_location(token.<a class="code" href="classerpcgen_1_1_annotation.html#aef0bc8ff519273c631b0b79213650e0b">getLocation</a>())</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    , m_lang(kAll)</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    {</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    }</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_annotation.html#ad5599315f40334388f52cbb55c21f615">   76</a></span>&#160;    <a class="code" href="classerpcgen_1_1_annotation.html#ad5599315f40334388f52cbb55c21f615">Annotation</a>(<span class="keyword">const</span> <a class="code" href="classerpcgen_1_1_annotation.html">Annotation</a> &amp;a)</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    : m_name(a.m_name)</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    , m_value(a.m_value)</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    , m_location(a.m_location)</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    , m_lang(a.m_lang)</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    {</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    }</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_annotation.html#ac6d4173cec7d8af927ce985be66a3c17">   89</a></span>&#160;    std::string <a class="code" href="classerpcgen_1_1_annotation.html#ac6d4173cec7d8af927ce985be66a3c17">getName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_name; }</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_annotation.html#ac72c8edb29ff6c07ff611151cb57a5f0">   96</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classerpcgen_1_1_annotation.html#ac72c8edb29ff6c07ff611151cb57a5f0">hasValue</a>() { <span class="keywordflow">return</span> <span class="keyword">nullptr</span> != m_value; }</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <a class="code" href="class_value.html">Value</a> *<a class="code" href="classerpcgen_1_1_annotation.html#ac907c227156887ae849bb1ae64989dd5">getValueObject</a>();</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_annotation.html#a27eb307f1958958e917648122c2a5f58">  112</a></span>&#160;    program_lang_t <a class="code" href="classerpcgen_1_1_annotation.html#a27eb307f1958958e917648122c2a5f58">getLang</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_lang; }</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_annotation.html#a78189821380af354ecde579745673b4d">  119</a></span>&#160;    std::string <a class="code" href="classerpcgen_1_1_annotation.html#a78189821380af354ecde579745673b4d">toString</a>() { <span class="keywordflow">return</span> m_name + <span class="stringliteral">&quot; = &quot;</span> + m_value-&gt;<a class="code" href="class_value.html#a8ed8e61ea6e50d3252e0279ed28c1fbb">toString</a>(); }</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_annotation.html#aef0bc8ff519273c631b0b79213650e0b">  126</a></span>&#160;    <a class="code" href="structerpcgen_1_1token__loc__t.html">token_loc_t</a> &amp;<a class="code" href="classerpcgen_1_1_annotation.html#aef0bc8ff519273c631b0b79213650e0b">getLocation</a>() { <span class="keywordflow">return</span> m_location; }</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    std::string m_name;     </div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <a class="code" href="class_value.html">Value</a> *m_value;         </div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <a class="code" href="structerpcgen_1_1token__loc__t.html">token_loc_t</a> m_location; </div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    program_lang_t m_lang;  </div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;};</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;} <span class="comment">// namespace erpcgen</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#endif // _EMBEDDED_RPC__ANNOTATION_H_</span></div><div class="ttc" id="classerpcgen_1_1_annotation_html_a8e01ad3e229cbcd55877420a27a399b0"><div class="ttname"><a href="classerpcgen_1_1_annotation.html#a8e01ad3e229cbcd55877420a27a399b0">erpcgen::Annotation::Annotation</a></div><div class="ttdeci">Annotation(const Token &amp;token, Value *val, program_lang_t lang)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> Annotation.h:46</div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html"><div class="ttname"><a href="classerpcgen_1_1_annotation.html">erpcgen::Annotation</a></div><div class="ttdoc">Annotation class. </div><div class="ttdef"><b>Definition:</b> Annotation.h:27</div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html_ad5599315f40334388f52cbb55c21f615"><div class="ttname"><a href="classerpcgen_1_1_annotation.html#ad5599315f40334388f52cbb55c21f615">erpcgen::Annotation::Annotation</a></div><div class="ttdeci">Annotation(const Annotation &amp;a)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> Annotation.h:76</div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html_a78189821380af354ecde579745673b4d"><div class="ttname"><a href="classerpcgen_1_1_annotation.html#a78189821380af354ecde579745673b4d">erpcgen::Annotation::toString</a></div><div class="ttdeci">std::string toString()</div><div class="ttdoc">This function returns toString representation. </div><div class="ttdef"><b>Definition:</b> Annotation.h:119</div></div>
<div class="ttc" id="class_value_html_a8ed8e61ea6e50d3252e0279ed28c1fbb"><div class="ttname"><a href="class_value.html#a8ed8e61ea6e50d3252e0279ed28c1fbb">Value::toString</a></div><div class="ttdeci">virtual std::string toString() const  =0</div><div class="ttdoc">Get Value type string representation. </div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html_ac72c8edb29ff6c07ff611151cb57a5f0"><div class="ttname"><a href="classerpcgen_1_1_annotation.html#ac72c8edb29ff6c07ff611151cb57a5f0">erpcgen::Annotation::hasValue</a></div><div class="ttdeci">bool hasValue()</div><div class="ttdoc">Checks to see if value instance member is null. </div><div class="ttdef"><b>Definition:</b> Annotation.h:96</div></div>
<div class="ttc" id="class_value_html"><div class="ttname"><a href="class_value.html">Value</a></div><div class="ttdoc">Abstract base class for values of arbitrary types. </div><div class="ttdef"><b>Definition:</b> Value.h:21</div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html_a27eb307f1958958e917648122c2a5f58"><div class="ttname"><a href="classerpcgen_1_1_annotation.html#a27eb307f1958958e917648122c2a5f58">erpcgen::Annotation::getLang</a></div><div class="ttdeci">program_lang_t getLang() const </div><div class="ttdoc">This function returns programming language type for which is annotation intended. ...</div><div class="ttdef"><b>Definition:</b> Annotation.h:112</div></div>
<div class="ttc" id="classerpcgen_1_1_token_html"><div class="ttname"><a href="classerpcgen_1_1_token.html">erpcgen::Token</a></div><div class="ttdoc">Encapsulates all information about a token. </div><div class="ttdef"><b>Definition:</b> Token.h:60</div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html_ac6d4173cec7d8af927ce985be66a3c17"><div class="ttname"><a href="classerpcgen_1_1_annotation.html#ac6d4173cec7d8af927ce985be66a3c17">erpcgen::Annotation::getName</a></div><div class="ttdeci">std::string getName() const </div><div class="ttdoc">This function returns annotation name. </div><div class="ttdef"><b>Definition:</b> Annotation.h:89</div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html_aef0bc8ff519273c631b0b79213650e0b"><div class="ttname"><a href="classerpcgen_1_1_annotation.html#aef0bc8ff519273c631b0b79213650e0b">erpcgen::Annotation::getLocation</a></div><div class="ttdeci">token_loc_t &amp; getLocation()</div><div class="ttdoc">This function returns location for symbol. </div><div class="ttdef"><b>Definition:</b> Annotation.h:126</div></div>
<div class="ttc" id="structerpcgen_1_1token__loc__t_html"><div class="ttname"><a href="structerpcgen_1_1token__loc__t.html">erpcgen::token_loc_t</a></div><div class="ttdoc">Token location in the source file. </div><div class="ttdef"><b>Definition:</b> Token.h:25</div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html_aeaa03b81e72b64279bf91374761b7363"><div class="ttname"><a href="classerpcgen_1_1_annotation.html#aeaa03b81e72b64279bf91374761b7363">erpcgen::Annotation::Annotation</a></div><div class="ttdeci">Annotation(const Token &amp;token)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> Annotation.h:61</div></div>
<div class="ttc" id="classerpcgen_1_1_annotation_html_ac907c227156887ae849bb1ae64989dd5"><div class="ttname"><a href="classerpcgen_1_1_annotation.html#ac907c227156887ae849bb1ae64989dd5">erpcgen::Annotation::getValueObject</a></div><div class="ttdeci">Value * getValueObject()</div><div class="ttdoc">This function returns annotation value. </div><div class="ttdef"><b>Definition:</b> Type.cpp:48</div></div>
<div class="ttc" id="namespaceerpcgen_html"><div class="ttname"><a href="namespaceerpcgen.html">erpcgen</a></div><div class="ttdef"><b>Definition:</b> AstNode.h:25</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer">Copyright 2016-2020 NXP Semiconductors. All rights reserved.
    </li>
  </ul>
</div>
</body>
</html>
